#ifndef READER_H
#define READER_H

#include <QRunnable>
#include <QObject>
#include "shelf.h"

class Reader : public QObject, public QRunnable
{
    Q_OBJECT
public:
    explicit Reader(Shelf *shelf, int time, QObject *parent = 0);
    void run();

signals:
    void read();
    void wait();

private:
    Shelf *shelf;
    int time;
};

#endif // READER_H
